var express = require('express');
var router = express.Router();
var dirManager = require('../manager/dirManager');
var sysManager = require('../manager/sysManager');


/* GET home page. */
router.get('/', function(req, res, next) {
	dirManager.getRoot(req, res, next);
	
	//res.render("index_jm");
});



router.get('/cputemp', function(req, res, next) {
	sysManager.getCpuTemperature(req, res, next);
});

router.get('/meminfo', function(req, res, next) {
	sysManager.getMeminfo(req, res, next);
});


router.get('/uptime', function(req, res, next) {
	sysManager.getUptime(req, res, next);
});



module.exports = router;
